<template>
  <div>
    <h3>这个son组件---navite{{ a }}----{{ b }}</h3>
    <button @click="HClick" />
  </div>
</template>

<script>
export default {
  props: {
    a: {
      type: Number,
      required: true
    },
    b: {
      type: Number,
      required: true
    }
  },
  methods: {
    HClick() {
      this.$emit('update:a', this.a + 1)
      this.$emit('update:b', this.b + 1)
    }
  }
}
</script>

